package com.kdd.campus.sh.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/****
 * @Author:shenkunlin
 * @Description:ShProduct构建
 * @Date 2019/6/14 19:13
 *****/
@ApiModel(description = "CartDto",value = "CartDto")
@Data
public class CartDto implements Serializable{

	@ApiModelProperty(value = "")
	@Id
	private Long id;//
	
	@ApiModelProperty(value = "")
	private Long userId;//

	private Long productId;

	private String userName;

	private String userImg;

	@ApiModelProperty(value = "商品价格")
	private Double price;//商品打折后的价格


	@ApiModelProperty(value = "商品名称")
	private String name;//商品名称

	@ApiModelProperty(value = "商品数量")
	private Integer productNum;//商品数量

	@ApiModelProperty(value = "创建时间")
	private Date created;//创建时间

	@ApiModelProperty(value = "商品图片")
	private String image;//商品图片

	@ApiModelProperty(value = "是否是新品(0:不是新品 1:新品)")
	private Integer isNew;//是否是新品(0:不是新品 1:新品)
}
